package config;

import model.CClass;

import java.util.Date;

/**
 *
 *
 * //优先
 * Created by root on 17-6-14.
 */
public class Config {

    public boolean donotchangecoachforstudent;
    //todo 预约考试时长
    public int exam_days;
    public int student_count;
    public int coach_count;
    public boolean[] workingday;
    public int 上午_classstart, 上午_classend;
    public int 下午_classstart, 下午_classend;
    public int 建议_classhours;
    public float 填充度;
    public int coach_work_day_hours;
    public boolean 先排满一个教练;
    public CClass[] classtimes;
    public int studentcount_oncar = 1;
    public int day_h_max;
    public int week_h_max;
    public int subject2_h;
    public Date startdate;
    public Config() {
    }

    //周日=0
    public int getworkingweekdaycount() {
        int i = 0;
        for (boolean w : workingday) {
            if (w) {
                i++;
            }
        }
        return i;
    }
}
